module.exports = {
	baseUrl: './',
	assetsDir: 'static',
	productionSourceMap: false,
	devServer: {
		proxy: {
			// proxy all requests starting with /api to jsonplaceholder
			'/api': {
				target: 'http://localhost:3000', //代理接口
				changeOrigin: true,
				pathRewrite: {
					'^/api': '/' //代理的路径
				}
			}
		}
	}
}

